package com.papers.system.service;

import com.papers.common.core.domain.PageQuery;
import com.papers.common.core.domain.R;
import com.papers.common.core.page.TableDataInfo;
import com.papers.system.domain.TJuanDepartment;
import com.papers.system.domain.bo.TJuanDepartmentBo;
import com.papers.system.domain.vo.TJuanDepartmentVo;

import java.util.Collection;
import java.util.List;

/**
 * 院系Service接口
 *
 * @author papers
 * @date 2022-10-08
 */
public interface ITJuanDepartmentService {

    /**
     * 查询院系
     */
    TJuanDepartmentVo queryById(String departId);

    /**
     * 查询院系列表
     */
    TableDataInfo<TJuanDepartmentVo> queryPageList(TJuanDepartmentBo bo, PageQuery pageQuery);

    /**
     * 查询院系列表
     */
    List<TJuanDepartmentVo> queryList(TJuanDepartmentBo bo);

    /**
     * 新增院系
     */
    Boolean insertByBo(TJuanDepartmentBo bo);

    /**
     * 修改院系
     */
    Boolean updateByBo(TJuanDepartmentBo bo);

    /**
     * 校验并批量删除院系信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    int DepartCodeUnique(TJuanDepartmentBo bo);

    /**
     * 查询专业院系名称
     * @return
     */
    List<TJuanDepartmentVo> getMajorDepName();

    /**
     * 查询院系
     * @param depName
     * @return
     */
    TJuanDepartment getOne(String depName);

    R getDepartmentList();

    /**
     * 导入 院系
     *
     * @param list
     */
    R save(List<TJuanDepartment> list) ;

}
